/**
 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// 设置常用字体
	config.font_names = '宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;' + config.font_names ; 
	
	config.toolbar = [
		                { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', '-' , 'Preview', '-', 'Templates' ] },
						{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
						{ name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
						{ name: 'forms' },
						{ name: 'tools' },
		              	{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline' ] },
		              	{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
		              	'/',
		              	{ name: 'links', items: [ 'Link', 'Unlink' ] },
		            	{ name: 'insert', items: [ 'Image', 'Table',  ] },
		              	{ name: 'styles', items: [ 'Font', 'FontSize' ] },
		              	{ name: 'colors', items: [ 'TextColor', 'BGColor' ] }
		              ];
		
		config.enterMode = CKEDITOR.ENTER_BR;
		config.shiftEnterMode = CKEDITOR.ENTER_P;
};
